package com.diana.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author anzhi
 * @since 2019-12-06
 */
@TableName("integral_record")
public class IntegralRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String userId;
    private Integer formerIntegral;
    private Integer integralNum;
    private Integer currentIntegral;
    /**
     * 0/1 使用/充值
     */
    private Integer status;
    private Date createTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getFormerIntegral() {
        return formerIntegral;
    }

    public void setFormerIntegral(Integer formerIntegral) {
        this.formerIntegral = formerIntegral;
    }

    public Integer getIntegralNum() {
        return integralNum;
    }

    public void setIntegralNum(Integer integralNum) {
        this.integralNum = integralNum;
    }

    public Integer getCurrentIntegral() {
        return currentIntegral;
    }

    public void setCurrentIntegral(Integer currentIntegral) {
        this.currentIntegral = currentIntegral;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "IntegralRecord{" +
        ", id=" + id +
        ", userId=" + userId +
        ", formerIntegral=" + formerIntegral +
        ", integralNum=" + integralNum +
        ", currentIntegral=" + currentIntegral +
        ", status=" + status +
        ", createTime=" + createTime +
        "}";
    }
}
